<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>测试页面</title>
    <style>
        button {
            color: purple;
            background-color: skyblue;
            font-size: 30px;
            margin: 100px auto;
            width: 200px;
            height: 200px;
        }
    </style>
</head>

<body>
    <button>
        宝宝你是一头🐖哟
        <br>快来点击变成🐂把
    </button>
</body>
<script>
    document.querySelector("button").onclick = function() {
        console.log('你变成一头🐂拉');
        setTimeout(() => {
            console.log("🐂你好啊牛宝宝");

        }, 2000)
    }
</script>

</html>